package cn.edu.seu.herald.ip.model.dto.post;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "post")
public class Post {
	
	@XmlElements({
		@XmlElement(name = "activity",type = ActivityContent.class),
		@XmlElement(name = "recruit",type = RecruitContent.class),
		@XmlElement(name = "vote",type = VoteContent.class)
	})
	private PostContent _content;

	public PostContent getContent() {
		return _content;
	}

	public void setContent(PostContent _content) {
		this._content = _content;
	}

}
